<?php
 
class pStandard_Node extends cPart 
{
	
	function setElement(SimpleXMLElement $parent, $value, cView $view) 
	{
		$parent = parent::setElement($parent, $value, $view);
		
		$override = array();
		
		if ($view->mode=='backend') $override['action']='edit';
		
		if ($this->getAttr("name")=="treeitem" && $view->doctype!='raw' && $view->action=='show' ) 
		{
			$parent->addChild("url",htmlspecialchars($this->node->getUrl($view, $override)));
		}
		return $parent;
	}
	

}
 
?>